#ifndef __USART2_H
#define __USART2_H

#include "common.h"
#include "string.h"
#include <stdio.h>
#include <stdarg.h>
#include "esp8266_STA.h"


extern u8 Sonar_data[8],Receive_ok;
extern uint8_t space[2];

void Usart_Int2(uint32_t BaudRatePrescaler);
void USART2_send_byte(uint8_t byte);
void usart2_send_data( unsigned char *DataToSend , u8 data_num);
void usart2_SendString(char *String);
void usart2_printf(char *format, ...);

void Usart2_Byte_Get(u8 bytedata);
static void Usart2_Data_Analysis(u8 *buf_data,u8 len);
void send_com(u8 data);


#endif
